package com.c8a.validation.annotation;

import com.c8a.validation.utils.valid.PasswordValidtion;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @Author C8A
 * @Date 2022-04-24 17:25
 * @Email 1912327276@qq.com
 */

@Documented
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = PasswordValidtion.class)
public @interface ValidPassword {
    String message() default "无效的密码";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
